package com.example.noteapp;

import java.io.Serializable;
import java.util.Date;

public class Note implements Serializable {
    private long id;
    private String title;
    private String content;
    private long timestamp;

    public Note() {
        this.timestamp = new Date().getTime();
    }

    public Note(String title, String content) {
        this.title = title;
        this.content = content;
        this.timestamp = new Date().getTime();
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
}